<p class="page-announce" style="font-size:1.3em;">
	Make an internal transfer of funds between your account wallets.
</p>

<p>
	Fields marked with 
	<span class='required'>*</span>
	 are required.
</p>


<div class='form'>
	<form id="internalTransferForm" method='post' action="<?php echo site_url("user/account/operations/internal-transfer/save")?>"  onsubmit="return Send('#internalTransferForm');">
		<div class="line" id="">
			<label id="accountFromLbl" for="accountFrom">From</label>
			<select id="accountFrom" name="accountFrom">
				<option value="">Select one</option>
				<?php foreach ($wallet_list as $value):?>
					<?php 
						$from_value = $value["WALLET_ID"] . "-" . $value["CURRENCY_ID"];
						if($from_value == $from_id){
							$selected = "selected='selected'";
						}
						else	$selected = "";
					?>
					<option value="<?php echo $from_value;?>" <?php echo $selected;?>>
						<?php echo $value["NAME"] . " - " . $value["C_SIGN"] . $value["AMMOUNT"] . " " . $value["C_SYMBOL"];?>
					</option>
				<?php endforeach;?>
			</select>
			<span class="error-validator" style="display:none;">
				<span id="accountFromErr"></span>
			</span>
		</div>
		<div class="line">
			<label id="accountToLbl" for="accountTo">To</label>
			<select id="accountTo" name="accountTo">
				<option value="">Select one</option>
				<?php foreach ($wallets as $value):?>
					<?php 
						$to_value = $value["ID"];
						if($to_value == $to_id){
							$selected = "selected='selected'";
						}
						else	$selected = "";
					?>
					<option value="<?php echo $to_value;?>" <?php echo $selected;?>>
						<?php echo $value["NAME"];?>
					</option>
				<?php endforeach;?>
			</select>
			<span class="error-validator" style="display:none;">
				<span id="accountToErr"></span>
			</span>
		</div>
		<div class="line">
			<label id="ammountLbl" for="ammount">
				Amount
				<span class="required">*</span>
			</label>
			<input type="text" id="ammount" value="<?php echo $value_ammount;?>" name="ammount" style="" />
			<span class="error-validator" style="display:none;">
				<span id="ammountErr"></span>
			</span>
<!--			<div style="clear:both;"></div>-->
		</div>
		<div class="line">
			<label id="commentLbl" for="comment">Comment</label>
			<textarea class="text" id="comment" cols="20" rows="2" name="comment"><?php echo $comment;?></textarea>
		</div>
		<fieldset class="submit">
			<div class="input-button-block">
				<input type="submit" id="btnInternalTransfer" onclick="" value="Next" name="btnInternalTransfer">
			</div>
		</fieldset>
	</form>
</div>